import React from 'react'
import Card from 'lib/components/card.jsx'

export default class Card2 extends Card {
  renderTitle() {
    return (
      <div className="widget-title">
        <div className="float-right">
          {
            this.props.extra
          }
          {
            this.props.useToggle ? (this.state.showContent ? (
              <a className="iconfont" href="javascript:;" onClick={this.slideUp.bind(this)}>&#xe611;</a>
            ) : (
              <a className="iconfont" href="javascript:;" onClick={this.slideDown.bind(this)}>&#xe610;</a>
            )) : null
          }
        </div>
        {
          this.props.title
        }
      </div>
    )
  }
}
